package liangtWorkSpace.factory.headFirstFactory.factory;

/**
 * @ClassName PizzaTestDrive
 * @Description : 测试披萨工厂
 * @Author : LiangT
 * @Date : 2020/7/3 11:29
 */
public class PizzaTestDrive {

    public static void main(String[] args) {
        PizzaStore pizzaStore = new NYPizzaStore();
        Pizza pizza = pizzaStore.orderPizza("cheese");
        System.out.println("Ethan ordered a" + pizza.name );
    }
}
